package com.tutu.service;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * ModuleService
 */
public interface ModuleService {

    // 查询（分页）
    Map<String, Object> pageByParams(String keyWord, Integer page, Integer limit);

    // 添加 or 修改
    Map<String, Object> saveInfo(HttpServletRequest request, Integer id, String name, String liName, String description, Integer sortIndex);

    // 删除
    Map<String, Object> deleteById(HttpServletRequest request, Integer id);

    // 批量删除
    Map<String, Object> batchDel(HttpServletRequest request, String ids);
}
